package com.fengplus.demo.service.impl;

import com.fengplus.demo.entity.AppUser;
import com.fengplus.demo.mapper.AppUserMapper;
import com.fengplus.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private AppUserMapper userMapper;

    @Override
    public AppUser findOne(Long id) {
        return userMapper.findOne(id);
    }

    @Override
    public int save(AppUser user) {
        return userMapper.save(user);
    }
}
